package fr.starn.meteo_widgets.JSonObject;

public class Main {
	float temp;
	float humidity;

	public float getTemp() {
		return temp;
	}

	public void setTemp(float temp) {
		this.temp = temp;
	}
	
	public float getTemp(boolean isKelvin){
		if (isKelvin) return temp;
		else return temp - 273.15f;
	}

	public float getHumidity() {
		return humidity;
	}

	public void setHumidity(float humidity) {
		this.humidity = humidity;
	}
	
	
	
}
